To print a diagram, use the DiagramPrinter class. This provides you with a DiagramPrintDocument which in turn yields a WPF FixedDocument which can be passed to an XpsDocumentWriter.

For more information, see Printing in the QuickStart walkthrough.